package com.itheima.Utils;

/**
 * ThreadLocal
 * @author GY
 * @version V1.0
 * @date 2025-01-19 11:50
 */
public class ThreadLocalUtils {
    private static final ThreadLocal<String> THREAD_LOCAL =new ThreadLocal();

    public static void set(String username){
        THREAD_LOCAL.set(username);
    }

    public static String get(){
        return THREAD_LOCAL.get();
    }

    public static void remove(){
        THREAD_LOCAL.remove();
    }
}
